/*
 * XML Type:  RecurringInterTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.RecurringInterTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML RecurringInterTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class RecurringInterTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.RecurringInterTransactionResponse
{
    
    public RecurringInterTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName RECINTERRS$0 = 
        new javax.xml.namespace.QName("", "RECINTERRS");
    private static final javax.xml.namespace.QName RECINTERMODRS$2 = 
        new javax.xml.namespace.QName("", "RECINTERMODRS");
    private static final javax.xml.namespace.QName RECINTERCANRS$4 = 
        new javax.xml.namespace.QName("", "RECINTERCANRS");
    
    
    /**
     * Gets the "RECINTERRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterResponse getRECINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterResponse)get_store().find_element_user(RECINTERRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECINTERRS" element
     */
    public boolean isSetRECINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERRS$0) != 0;
        }
    }
    
    /**
     * Sets the "RECINTERRS" element
     */
    public void setRECINTERRS(net.ofx.types.x2003.x04.RecurringInterResponse recinterrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterResponse)get_store().find_element_user(RECINTERRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInterResponse)get_store().add_element_user(RECINTERRS$0);
            }
            target.set(recinterrs);
        }
    }
    
    /**
     * Appends and returns a new empty "RECINTERRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterResponse addNewRECINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterResponse)get_store().add_element_user(RECINTERRS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "RECINTERRS" element
     */
    public void unsetRECINTERRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERRS$0, 0);
        }
    }
    
    /**
     * Gets the "RECINTERMODRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterModResponse getRECINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterModResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterModResponse)get_store().find_element_user(RECINTERMODRS$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECINTERMODRS" element
     */
    public boolean isSetRECINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERMODRS$2) != 0;
        }
    }
    
    /**
     * Sets the "RECINTERMODRS" element
     */
    public void setRECINTERMODRS(net.ofx.types.x2003.x04.RecurringInterModResponse recintermodrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterModResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterModResponse)get_store().find_element_user(RECINTERMODRS$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInterModResponse)get_store().add_element_user(RECINTERMODRS$2);
            }
            target.set(recintermodrs);
        }
    }
    
    /**
     * Appends and returns a new empty "RECINTERMODRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterModResponse addNewRECINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterModResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterModResponse)get_store().add_element_user(RECINTERMODRS$2);
            return target;
        }
    }
    
    /**
     * Unsets the "RECINTERMODRS" element
     */
    public void unsetRECINTERMODRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERMODRS$2, 0);
        }
    }
    
    /**
     * Gets the "RECINTERCANRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterCancellationResponse getRECINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterCancellationResponse)get_store().find_element_user(RECINTERCANRS$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "RECINTERCANRS" element
     */
    public boolean isSetRECINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(RECINTERCANRS$4) != 0;
        }
    }
    
    /**
     * Sets the "RECINTERCANRS" element
     */
    public void setRECINTERCANRS(net.ofx.types.x2003.x04.RecurringInterCancellationResponse recintercanrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterCancellationResponse)get_store().find_element_user(RECINTERCANRS$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RecurringInterCancellationResponse)get_store().add_element_user(RECINTERCANRS$4);
            }
            target.set(recintercanrs);
        }
    }
    
    /**
     * Appends and returns a new empty "RECINTERCANRS" element
     */
    public net.ofx.types.x2003.x04.RecurringInterCancellationResponse addNewRECINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RecurringInterCancellationResponse target = null;
            target = (net.ofx.types.x2003.x04.RecurringInterCancellationResponse)get_store().add_element_user(RECINTERCANRS$4);
            return target;
        }
    }
    
    /**
     * Unsets the "RECINTERCANRS" element
     */
    public void unsetRECINTERCANRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(RECINTERCANRS$4, 0);
        }
    }
}
